package cn.cnf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (pic)实体类
 *
 * @author ZhuMeiYi
 * @since 2021-01-30 17:33:16
 * @description 
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pic")
public class Pic extends Model<Pic> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_UUID)
	private String id;
    /**
     * 相对路径
     */
    private String path;
    /**
     * 真实路径
     */
    private String realPath;
    /**
     * 状态
     */
    private Integer state;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}